package com.example.socialwebserver.pojo;

public class MatchDAO implements Comparable<MatchDAO>{
    Float score;
    Integer userId;

    public MatchDAO(){

    }
    public MatchDAO(Float score, Integer userId) {
        this.score = score;
        this.userId = userId;
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    @Override
    public int compareTo(MatchDAO o) {
        return (int) (o.score - this.getScore());
    }
}
